package com.itheima.day03.ZuoYe.ZuoYe3;

public class TEST {
    public static void main(String[] args) {
        Car car = new Baoma();
        Car car2 = new Baomamotuo();
        car.run();
        ((Baoma)car).display();
        car2.run();
        ((Baomamotuo)car2).display();
        Car car3 = new Car("w",1);
        Car car4 = new Car("w",1);
        System.out.println(car3);
        System.out.println(car4);
    }
}
